//---------------------------------------------------------------------------


#pragma hdrstop

#include "TRetarderElement.h"

//---------------------------------------------------------------------------


__fastcall TRetarderElement::TRetarderElement()
{
   FWorkNumber = 0;
   FRiseTime = 0;
};

TRetarderElement & TRetarderElement::operator = (const TRetarderElement & t)
{
   FModel = t.FModel;
   FWorkNumber = t.FWorkNumber;
   FRiseTime = t.FRiseTime;
   FCtrRise = t.FCtrRise;
   return *this;
}

bool __fastcall TRetarderElement::IsExist(void)
{
   if (FWorkNumber == 0) return false;
   else return true;
};

TRetarderList & TRetarderList::operator = (const TRetarderList & t)
{
   unsigned short i;
   resize(t.Quantity);
   for (i = 0; i < t.Quantity; i++)
   {
      at(i) = t[i];
   }
   return *this;
}

void __fastcall TRetarderList::SetQuantity(unsigned short NewQuantity)
{
   resize(NewQuantity);
};


#pragma package(smart_init)
